package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class StudentAttendanceDateExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StudentAttendanceDateExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAttendancesumIsNull() {
            addCriterion("attendanceSum is null");
            return (Criteria) this;
        }

        public Criteria andAttendancesumIsNotNull() {
            addCriterion("attendanceSum is not null");
            return (Criteria) this;
        }

        public Criteria andAttendancesumEqualTo(Integer value) {
            addCriterion("attendanceSum =", value, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumNotEqualTo(Integer value) {
            addCriterion("attendanceSum <>", value, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumGreaterThan(Integer value) {
            addCriterion("attendanceSum >", value, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumGreaterThanOrEqualTo(Integer value) {
            addCriterion("attendanceSum >=", value, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumLessThan(Integer value) {
            addCriterion("attendanceSum <", value, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumLessThanOrEqualTo(Integer value) {
            addCriterion("attendanceSum <=", value, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumIn(List<Integer> values) {
            addCriterion("attendanceSum in", values, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumNotIn(List<Integer> values) {
            addCriterion("attendanceSum not in", values, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumBetween(Integer value1, Integer value2) {
            addCriterion("attendanceSum between", value1, value2, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancesumNotBetween(Integer value1, Integer value2) {
            addCriterion("attendanceSum not between", value1, value2, "attendancesum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumIsNull() {
            addCriterion("attendanceNum is null");
            return (Criteria) this;
        }

        public Criteria andAttendancenumIsNotNull() {
            addCriterion("attendanceNum is not null");
            return (Criteria) this;
        }

        public Criteria andAttendancenumEqualTo(Integer value) {
            addCriterion("attendanceNum =", value, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumNotEqualTo(Integer value) {
            addCriterion("attendanceNum <>", value, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumGreaterThan(Integer value) {
            addCriterion("attendanceNum >", value, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("attendanceNum >=", value, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumLessThan(Integer value) {
            addCriterion("attendanceNum <", value, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumLessThanOrEqualTo(Integer value) {
            addCriterion("attendanceNum <=", value, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumIn(List<Integer> values) {
            addCriterion("attendanceNum in", values, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumNotIn(List<Integer> values) {
            addCriterion("attendanceNum not in", values, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumBetween(Integer value1, Integer value2) {
            addCriterion("attendanceNum between", value1, value2, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancenumNotBetween(Integer value1, Integer value2) {
            addCriterion("attendanceNum not between", value1, value2, "attendancenum");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeIsNull() {
            addCriterion("attendanceType is null");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeIsNotNull() {
            addCriterion("attendanceType is not null");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeEqualTo(String value) {
            addCriterion("attendanceType =", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeNotEqualTo(String value) {
            addCriterion("attendanceType <>", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeGreaterThan(String value) {
            addCriterion("attendanceType >", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeGreaterThanOrEqualTo(String value) {
            addCriterion("attendanceType >=", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeLessThan(String value) {
            addCriterion("attendanceType <", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeLessThanOrEqualTo(String value) {
            addCriterion("attendanceType <=", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeLike(String value) {
            addCriterion("attendanceType like", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeNotLike(String value) {
            addCriterion("attendanceType not like", value, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeIn(List<String> values) {
            addCriterion("attendanceType in", values, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeNotIn(List<String> values) {
            addCriterion("attendanceType not in", values, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeBetween(String value1, String value2) {
            addCriterion("attendanceType between", value1, value2, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendancetypeNotBetween(String value1, String value2) {
            addCriterion("attendanceType not between", value1, value2, "attendancetype");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectIsNull() {
            addCriterion("attendanceObject is null");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectIsNotNull() {
            addCriterion("attendanceObject is not null");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectEqualTo(String value) {
            addCriterion("attendanceObject =", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectNotEqualTo(String value) {
            addCriterion("attendanceObject <>", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectGreaterThan(String value) {
            addCriterion("attendanceObject >", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectGreaterThanOrEqualTo(String value) {
            addCriterion("attendanceObject >=", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectLessThan(String value) {
            addCriterion("attendanceObject <", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectLessThanOrEqualTo(String value) {
            addCriterion("attendanceObject <=", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectLike(String value) {
            addCriterion("attendanceObject like", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectNotLike(String value) {
            addCriterion("attendanceObject not like", value, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectIn(List<String> values) {
            addCriterion("attendanceObject in", values, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectNotIn(List<String> values) {
            addCriterion("attendanceObject not in", values, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectBetween(String value1, String value2) {
            addCriterion("attendanceObject between", value1, value2, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendanceobjectNotBetween(String value1, String value2) {
            addCriterion("attendanceObject not between", value1, value2, "attendanceobject");
            return (Criteria) this;
        }

        public Criteria andAttendancedateIsNull() {
            addCriterion("attendanceDate is null");
            return (Criteria) this;
        }

        public Criteria andAttendancedateIsNotNull() {
            addCriterion("attendanceDate is not null");
            return (Criteria) this;
        }

        public Criteria andAttendancedateEqualTo(String value) {
            addCriterion("attendanceDate =", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateNotEqualTo(String value) {
            addCriterion("attendanceDate <>", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateGreaterThan(String value) {
            addCriterion("attendanceDate >", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateGreaterThanOrEqualTo(String value) {
            addCriterion("attendanceDate >=", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateLessThan(String value) {
            addCriterion("attendanceDate <", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateLessThanOrEqualTo(String value) {
            addCriterion("attendanceDate <=", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateLike(String value) {
            addCriterion("attendanceDate like", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateNotLike(String value) {
            addCriterion("attendanceDate not like", value, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateIn(List<String> values) {
            addCriterion("attendanceDate in", values, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateNotIn(List<String> values) {
            addCriterion("attendanceDate not in", values, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateBetween(String value1, String value2) {
            addCriterion("attendanceDate between", value1, value2, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendancedateNotBetween(String value1, String value2) {
            addCriterion("attendanceDate not between", value1, value2, "attendancedate");
            return (Criteria) this;
        }

        public Criteria andAttendanceidIsNull() {
            addCriterion("attendanceId is null");
            return (Criteria) this;
        }

        public Criteria andAttendanceidIsNotNull() {
            addCriterion("attendanceId is not null");
            return (Criteria) this;
        }

        public Criteria andAttendanceidEqualTo(Integer value) {
            addCriterion("attendanceId =", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidNotEqualTo(Integer value) {
            addCriterion("attendanceId <>", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidGreaterThan(Integer value) {
            addCriterion("attendanceId >", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidGreaterThanOrEqualTo(Integer value) {
            addCriterion("attendanceId >=", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidLessThan(Integer value) {
            addCriterion("attendanceId <", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidLessThanOrEqualTo(Integer value) {
            addCriterion("attendanceId <=", value, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidIn(List<Integer> values) {
            addCriterion("attendanceId in", values, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidNotIn(List<Integer> values) {
            addCriterion("attendanceId not in", values, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidBetween(Integer value1, Integer value2) {
            addCriterion("attendanceId between", value1, value2, "attendanceid");
            return (Criteria) this;
        }

        public Criteria andAttendanceidNotBetween(Integer value1, Integer value2) {
            addCriterion("attendanceId not between", value1, value2, "attendanceid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}